package com.dys.ai.service.impl;

import com.dys.ai.common.api.ApiResponse;
import com.dys.ai.common.api.ResponseEntity;
import com.dys.ai.mapper.TrainMapper;
import com.dys.ai.service.TrainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TrainServiceImpl implements TrainService {
    @Autowired
    private TrainMapper trainMapper;

    @Override
    public ResponseEntity listTrains() {
        return ApiResponse.success("获取车次信息成功",trainMapper.selectTrains());
    }
}
